<%-- 
    Document   : updateMessage
    Created on : 2017-3-23, 23:06:01
    Author     : DELL
--%>
<%@page import="com.entity.Student"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
                <%
        Student stu = null;
        stu =(Student)session.getAttribute("student");
 
           
    %>
    
    
    <body>
        
                <hr>
        <table width="100%" align="center">
            <tr >
                <td>
                    <s:a href="LookMessage.action">查看个人信息</s:a>
                </td>
                                <td>
                    <s:a href="updateMessage.jsp">修改个人信息</s:a>
                </td>
                                <td>
                    <s:a href="CourseGrade.action">课程成绩</s:a>
                </td>
                                <td>
                    <s:a href="updatePassword.jsp">修改密码</s:a>
                </td>
                                <td>
                    <s:a href="../index2.jsp" target="_top" >退出系统</s:a>
                </td>
        
            </tr>
        </table>

        <hr>
         <br><br>
        <s:form action="UpdateMessage"   method="post">
 <table width="52%" align="center" border="2" cellspacing="0" cellpadding="0" bgcolor="gray" >
                    <tr align="left">
                <td height="30">学号</td>
                <td><%=stu.getSno()%> </td>
                           </tr>
            <tr align="left">
                <td height="30">用户名</td>
                 <td>
                    <input type="text" name="userName" value="<%=stu.getUserName()%>">  
                </td>
             
            </tr>
            <tr align="left">
                <td height="30">性别</td>
                              <td>
                    <input type="text" name="sex" value="<%=stu.getSex()%>">  
                </td>             
            </tr>
                    <tr align="left">
                <td height="30">院系</td>
                                 <td>
                    <input type="text" name="department" value="<%=stu.getDepartment()%>">  
                </td>             
            </tr>
                        </tr>
                    <tr align="left">
                <td height="30">籍贯</td>
                                <td>
                    <input type="text" name="jiguan" value="<%=stu.getJiguan()%>">  
                </td>             
            </tr>
                        </tr>
                    <tr align="left">
                <td height="30">学分</td>
                <td><%=stu.getMark()%> </td>               
            </tr>
                        </tr>
                    <tr align="left">
                <td height="30">邮箱地址</td>
                                 <td>
                    <input type="text" name="email" value="<%=stu.getEmail()%>">  
                </td>               
            </tr>
                        </tr>
                    <tr align="left">
                <td height="30">电话</td>
                                <td>
                    <input type="text" name="tel" value="<%=stu.getTel()%>">  
                </td>             
            </tr>
            
                        </tr>
                    <tr align="left">
                <td height="30">最大选课数</td>
                <td><%=stu.getMaxClasses()%> </td>                  
            </tr>
                    <tr  >
            <td height="30" align="center" colspan="2">
                
                <input type="submit" value="确定" size="12">&nbsp;&nbsp;&nbsp;
                     <input type="reset" value="取消" size="12">
                </td>

            </tr>
        </table>
             </s:form>
    </body>
</html>
